<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="/faces/templates/template.xhtml">
        <ui:define name="content">
            <h:form>
                <h:panelGrid columns="5" cellspacing="10px">
                    <h:dataTable id="table-auktionen" var="auktionen" value="#{managedBeanAuktion.findAllSortByEnd()}" >
                        <h:column>
                            <f:facet name="header">
                                <h:outputLabel value="Artikel" style="font-weight: bold; font-size: 130%"/>
                            </f:facet>
                            <h:outputLabel value="#{auktionen.artikelbeschreibung}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputLabel value="Kategorie" style="font-weight: bold; font-size: 130%"/>
                            </f:facet>
                            <h:outputLabel value="#{auktionen.artikelKategorie}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputLabel value="Gebot" style="font-weight: bold; font-size: 130%"/>
                            </f:facet>
                            <h:outputLabel value="gebot"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputLabel value="Ende" style="font-weight: bold; font-size: 130%"/>
                            </f:facet>
                            <h:outputLabel value="#{auktionen.auktionsende}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputLabel value="Details" style="font-weight: bold; font-size: 130%"/>
                            </f:facet>
                            <h:commandButton value="anzeigen" action="#{managedBeanAuktion.zeigeDetail(auktion)}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGrid>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

